package org.neuedu.chapter10_0702.demo05;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ListDemo01 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("hello1");
        list.add("hello2");
        list.add("hello3");
        list.add("hello4");
        list.add("hello5");
        Object[] objects = list.toArray();
        for (Object o : objects) {
            System.out.println(o);
        }

        String[] arr = {"1", "abc"};
        List<String> lists = Arrays.asList(arr);
    }
}
